using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using DungeonAdventure.GameLibrary;

namespace DungeonAdventure.App
{
    #if WINDOWS || XBOX

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        
        static void Main(string[] args)
        {
            var appExeLocation = new FileInfo(Assembly.GetEntryAssembly().Location);
            var appLocation = appExeLocation.Directory;
            var configFile = appLocation + @"\Config\DungeonAdventure.config";

            using (var game = new DaGame(configFile))
            {
                game.Run();
            }
        }
    }

    #endif
}

